<!--
 * @Author: zqx me_zqx@163.com
 * @Date: 2025-06-18 13:57:16
 * @LastEditors: zqx me_zqx@163.com
 * @LastEditTime: 2025-06-18 13:57:24
 * @FilePath: /XMate-h5/src/views/teamDemand/index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="flex flex-col h-screen justify-center items-center">
    <van-loading vertical>加载中...</van-loading>
  </div>
</template>

<script setup lang="ts">
import { onBeforeMount } from "vue";
import { getUserInfo } from "@/utils/auth";

onBeforeMount(() => {
  pushToTeamDemand();
});

function pushToTeamDemand() {
  console.log("pushToTeamDemand");
  console.log("getUserInfo", JSON.stringify(getUserInfo()));
  localStorage.setItem("yxtlm_userInfo", JSON.stringify(getUserInfo()) || "");
  console.log("yxtlm_userInfo", localStorage.getItem("yxtlm_userInfo"));
  const xmateBaseUrl = import.meta.env.VITE_XMATE_BASE_URL;
  window.location.replace(`${xmateBaseUrl}/#/team_demand_h5`);
}
</script>

<style scoped></style>
